﻿/* Author:
 *  Andrea Vandin
 */
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;

namespace TripLOAMobile.InternalEntities
{

    /// <summary>
    /// This class represent the criteria of a search
    /// </summary>
    public class SearchCriteria:TravelInfoContainer
    {
        private DateTime fromTime, toTime;


        /// <summary>
        /// Initializes a new instance of the <see cref="SearchCriteria"/> class.
        /// </summary>
        public SearchCriteria():base()
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="SearchCriteria"/> class.
        /// </summary>
        /// <param name="departureAddres">The departure addres.</param>
        /// <param name="destinationAddres">The destination addres.</param>
        /// <param name="fromTime">Beginning of the accepted interval</param>
        /// <param name="toTime">End of the accepted interval</param>
        /// <param name="smokerAccepted">if set to <c>true</c> [smoker accepted].</param>
        public SearchCriteria(string departureAddres, string destinationAddres, DateTime fromTime, DateTime toTime, bool smokerAccepted):base(departureAddres,destinationAddres,smokerAccepted)
        {
            FromTime = fromTime;
            ToTime = toTime;
        }

        /// <summary>
        /// Gets or sets the beginning of the accepted interval.
        /// </summary>
        /// <value>From time.</value>
        public DateTime FromTime
        {
            get
            {
                return fromTime;
            }
            set
            {
                fromTime = value;
            }
        }

        /// <summary>
        /// Gets or sets to time of the accepted interval
        /// </summary>
        /// <value>To time.</value>
        public DateTime ToTime
        {
            get
            {
                return toTime;
            }
            set
            {
                toTime = value;
            }
        }
    }
}
